package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;

/**
 * ERC20余额表
 */
@Data
@TableName(value = "tb_balance_token", autoResultMap = true)
public class BalanceToken {
    public String getWalletAddress() {
        return walletAddress;
    }
    public void setWalletAddress(String walletAddress) {
        this.walletAddress = walletAddress;
    }
    public String getTokenAddress() {
        return tokenAddress;
    }
    public void setTokenAddress(String tokenAddress) {
        this.tokenAddress = tokenAddress;
    }
    public BigDecimal getTokenBalance() {
        return tokenBalance;
    }
    public void setTokenBalance(BigDecimal tokenBalance) {
        this.tokenBalance = tokenBalance;
    }
    public Date getUpdateTime() {
        return updateTime;
    }
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @TableId(type = IdType.AUTO)
    private Long id;

    /** 钱包地址 */
    private String walletAddress;

    /** Token合约地址 */
    private String tokenAddress;

    /** Token余额 */
    private BigDecimal tokenBalance;

    /** 更新时间 */
    private Date updateTime;

}
